import axios from "@/utils/axios";
export default{
    // getalladmin: (data) => axios.get("/admin/query",{params:data}),
    getalladmin: (data) => axios.post("/admin/query",data),
    deladmin:(id)=>axios.delete(`/admin/${id}`),
    updateadmin:(data)=>axios.put("/admin",data),
    addAdmin:(data)=>axios.post('/admin',data),
    namelike:(data)=>axios.post('/admin/nameLike',data)
}